package com.matchmaking.system.service;



import com.matchmaking.system.domain.District;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.List;

public interface DistrictService {
    /**
     * 查询地区列表
     * @return
     */
   public List<District> selectObjects(District district);

    /**
     * 修改地区
     * @return
     */
    Integer updateObjects(District district);

    /**
     * 添加地区
     * @return
     */
//    Integer insertObjects(District district);



    /**
     * 删除地区
     * @return
     */
    Integer removeObjects(Integer id);


    /**
     * 报表统计
     * @return
     */
    List<District> findexcharDistrict();

   /**
    * 报表首字母统计
    * @return
    */
    List<District> findFirstLetter();

    /**
     * 报表统计折线图
     * @return
     */
    List<District> leveldists();

    /**
     * 状态
     * @return
     */
    void updateStatus(District district);

    /**
     * 导出
     * @return
     */
    List<District> DistrictExport(District district);

    void exprot(List<District> districts, HttpServletResponse response) throws IOException;

    District selectCityNameLevel(District district);

   Integer insertObject(District district);
}
